home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Utilities / MView / gxu / shownormal.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-30  |  1.2 KB  |  47 lines

  1. #pragma once
  2.  
  3. #ifndef SHOWNORMAL_H
  4. #define SHOWNORMAL_H
  5.  
  6. /*//////////////////////////////////////////////////////////////////////////////
  7. //
  8. // File: shownormal.h
  9. //
  10. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  11. //
  12. //
  13. //////////////////////////////////////////////////////////////////////////////*/
  14.  
  15. #include "gxcrackfvf.h"
  16.  
  17. class CShowNormals
  18. {
  19. public:
  20.     CShowNormals();
  21.     ~CShowNormals();
  22.  
  23.     // dwTexStage is the texture stage to use for drawing vectors, 
  24.     //                  if 0xffffffff then the normal field will be used
  25.     HRESULT Init(LPD3DXBASEMESH ptmDrawMesh, DWORD dwTexStage, float fLength);
  26.     HRESULT Draw(DWORD iSubset,DWORD iVertex, LPD3DXEFFECT pfxShowNormals,
  27.                     LPD3DXEFFECT pfxColor, DWORD dwColor,
  28.                     D3DXMATRIX *rgmIndexedMatrices, DWORD cIndexedMatrices);
  29.  
  30. private:
  31.     HRESULT CreateEmptyOutline();
  32.  
  33.     LPDIRECT3DDEVICE9 m_pDevice;
  34.     LPDIRECT3DVERTEXBUFFER9 m_pVertexBuffer;
  35.     LPDIRECT3DVERTEXDECLARATION9 m_pDecl;
  36.  
  37.     BOOL m_bSkinning;
  38.     BOOL m_bIndexedSkinning;
  39.     BOOL m_bHWVertexShaders;
  40.     float m_fScale;
  41.  
  42.     D3DXATTRIBUTERANGE *m_rgaeAttributeTable;
  43.     DWORD m_caeAttributeTable;
  44. };
  45.  
  46. #endif
  47.